package com.woniuxy.huayoung.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * <p>
 * 用户角色表
 * </p>
 *
 * @author dushen
 * @since 2021-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
public class UserRole  {

    private static final long serialVersionUID=1L;

    /**
     * 用户id
     */
    private Integer uid;

    /**
     * 角色id
     */
    private Integer rid;

    /*
    * 管理员
    * */
    private List<User> users;

    public UserRole(Integer uid, Integer rid) {
        this.uid = uid;
        this.rid = rid;
    }
}
